.class public Lcom/brixd/niceapp/util/LocalCacheUtils;
.super Ljava/lang/Object;
.source "LocalCacheUtils.java"


# static fields
.field private static final ALERT_COMMUNITY_ARTICLE_IDS:Ljava/lang/String; = "AlertCommunityArticleIDs"

.field private static final GUIDE_COMMENT_SETTING:Ljava/lang/String; = "GuideCommentSetting"

.field private static final GUIDE_MEIYIXIA_SETTING:Ljava/lang/String; = "GuideMeiyixiaSetting"

.field private static final GUIDE_PAGE_SETTING:Ljava/lang/String; = "GuidePageSetting"

.field private static final GUIDE_SIDE_MENU_COMMUNITY_SETTING:Ljava/lang/String; = "GuideSideMenuCommunitySetting"

.field private static final LOCAL_TAGS:Ljava/lang/String; = "LocalTags"

.field private static final PORTAL_DATA:Ljava/lang/String; = "PortalData"

.field private static final PORTAL_DATA_REQ_TIME:Ljava/lang/String; = "PortalDataReqTime"

.field public static ViewedCommunityAppsSet:Ljava/util/HashSet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashSet",
            "<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field private static final mContext:Landroid/content/Context;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 28
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    sput-object v0, Lcom/brixd/niceapp/util/LocalCacheUtils;->mContext:Landroid/content/Context;

    .line 29
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    sput-object v0, Lcom/brixd/niceapp/util/LocalCacheUtils;->ViewedCommunityAppsSet:Ljava/util/HashSet;

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    .prologue
    .line 26
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static addAlertCommunityArticleId(Landroid/content/Context;I)V
    .registers 7
    .param p0, "context"    # Landroid/content/Context;
    .param p1, "id"    # I

    .prologue
    .line 176
    :try_start_0
    invoke-static {}, Lcom/brixd/niceapp/util/LocalCacheUtils;->getAlertCommunityArticleIds()Lorg/json/JSONObject;

    move-result-object v1

    .line 177
    .local v1, "jsonObject":Lorg/json/JSONObject;
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {p0}, Lcom/zuiapps/suite/utils/device/DeviceUtil;->getDeviceId(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "_"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const-string v3, ""

    invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 178
    sget-object v2, Lcom/brixd/niceapp/util/LocalCacheUtils;->mContext:Landroid/content/Context;

    invoke-static {v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v2

    const-string v3, "AlertCommunityArticleIDs"

    invoke-virtual {v1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_33
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_33} :catch_34

    .line 182
    .end local v1    # "jsonObject":Lorg/json/JSONObject;
    :goto_33
    return-void

    .line 179
    :catch_34
    move-exception v0

    .line 180
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_33
.end method

.method public static clearMessages(I)V
    .registers 5
    .param p0, "uid"    # I

    .prologue
    const/4 v3, 0x0

    .line 142
    invoke-static {p0, v3}, Lcom/brixd/niceapp/util/LocalCacheUtils;->setMessagesCount(II)V

    .line 143
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "CachedMessages_"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Ljava/lang/String;)V

    .line 144
    invoke-static {}, Lcom/brixd/niceapp/bus/BusProvider;->getInstance()Lcom/squareup/otto/Bus;

    move-result-object v0

    new-instance v1, Lcom/brixd/niceapp/bus/event/MessageNotifyEvent;

    invoke-direct {v1, v3}, Lcom/brixd/niceapp/bus/event/MessageNotifyEvent;-><init>(I)V

    invoke-virtual {v0, v1}, Lcom/squareup/otto/Bus;->post(Ljava/lang/Object;)V

    .line 145
    return-void
.end method

.method private static getAlertCommunityArticleIds()Lorg/json/JSONObject;
    .registers 7

    .prologue
    .line 189
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v4

    invoke-static {v4}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v4

    const-string v5, "AlertCommunityArticleIDs"

    const-string v6, ""

    invoke-virtual {v4, v5, v6}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 190
    .local v1, "json":Ljava/lang/String;
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-eqz v4, :cond_1c

    .line 191
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2}, Lorg/json/JSONObject;-><init>()V

    .line 201
    :cond_1b
    :goto_1b
    return-object v2

    .line 194
    :cond_1c
    const/4 v2, 0x0

    .line 196
    .local v2, "jsonObject":Lorg/json/JSONObject;
    :try_start_1d
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
    :try_end_22
    .catch Lorg/json/JSONException; {:try_start_1d .. :try_end_22} :catch_2b

    .end local v2    # "jsonObject":Lorg/json/JSONObject;
    .local v3, "jsonObject":Lorg/json/JSONObject;
    move-object v2, v3

    .line 201
    .end local v3    # "jsonObject":Lorg/json/JSONObject;
    .restart local v2    # "jsonObject":Lorg/json/JSONObject;
    :goto_23
    if-nez v2, :cond_1b

    new-instance v2, Lorg/json/JSONObject;

    .end local v2    # "jsonObject":Lorg/json/JSONObject;
    invoke-direct {v2}, Lorg/json/JSONObject;-><init>()V

    goto :goto_1b

    .line 197
    .restart local v2    # "jsonObject":Lorg/json/JSONObject;
    :catch_2b
    move-exception v0

    .line 198
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_23
.end method

.method public static getAuthCode()Ljava/lang/String;
    .registers 3

    .prologue
    .line 79
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "CommunityAuthCode"

    const-string v2, ""

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static getAuthStatus()I
    .registers 3

    .prologue
    .line 87
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "CommunityAuthStatus"

    const/4 v2, -0x1

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;I)I

    move-result v0

    return v0
.end method

.method public static getLocalTagModels()Ljava/util/List;
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Lcom/brixd/niceapp/model/TagModel;",
            ">;"
        }
    .end annotation

    .prologue
    .line 153
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v4

    invoke-static {v4}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v4

    const-string v5, "LocalTags"

    const-string v6, ""

    invoke-virtual {v4, v5, v6}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 154
    .local v3, "tagsString":Ljava/lang/String;
    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-eqz v4, :cond_1c

    .line 155
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 170
    :cond_1b
    :goto_1b
    return-object v2

    .line 158
    :cond_1c
    const/4 v2, 0x0

    .line 160
    .local v2, "tags":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/TagModel;>;"
    :try_start_1d
    new-instance v0, Lorg/json/JSONArray;

    invoke-direct {v0, v3}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V

    .line 161
    .local v0, "array":Lorg/json/JSONArray;
    invoke-static {v0}, Lcom/brixd/niceapp/model/TagModel;->parseTagModels(Lorg/json/JSONArray;)Ljava/util/List;
    :try_end_25
    .catch Lorg/json/JSONException; {:try_start_1d .. :try_end_25} :catch_2e

    move-result-object v2

    .line 166
    .end local v0    # "array":Lorg/json/JSONArray;
    :goto_26
    if-nez v2, :cond_1b

    .line 167
    new-instance v2, Ljava/util/ArrayList;

    .end local v2    # "tags":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/TagModel;>;"
    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .restart local v2    # "tags":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/TagModel;>;"
    goto :goto_1b

    .line 162
    :catch_2e
    move-exception v1

    .line 163
    .local v1, "e":Lorg/json/JSONException;
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_26
.end method

.method public static getMessageCount(I)I
    .registers 4
    .param p0, "uid"    # I

    .prologue
    .line 111
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "MessagesCount_"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;I)I

    move-result v0

    return v0
.end method

.method public static getMessageLastCheckTime(I)J
    .registers 5
    .param p0, "uid"    # I

    .prologue
    .line 103
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "MessageLastCheckTime_"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-wide/16 v2, 0x0

    invoke-virtual {v0, v1, v2, v3}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;J)J

    move-result-wide v0

    return-wide v0
.end method

.method public static getMessages(I)Ljava/util/ArrayList;
    .registers 9
    .param p0, "uid"    # I
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I)",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/brixd/niceapp/userinfo/model/MessageModel;",
            ">;"
        }
    .end annotation

    .prologue
    .line 122
    const/4 v4, 0x0

    .line 123
    .local v4, "messages":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/userinfo/model/MessageModel;>;"
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v5

    invoke-static {v5}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v5

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "CachedMessages_"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    const-string v7, ""

    invoke-virtual {v5, v6, v7}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 124
    .local v3, "json":Ljava/lang/String;
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "cached message:"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Lcom/zuiapps/suite/utils/log/LogUtil;->i(Ljava/lang/String;)V

    .line 125
    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v5

    if-nez v5, :cond_54

    .line 127
    :try_start_3e
    new-instance v2, Lcom/google/gson/Gson;

    invoke-direct {v2}, Lcom/google/gson/Gson;-><init>()V

    .line 128
    .local v2, "gson":Lcom/google/gson/Gson;
    new-instance v5, Lcom/brixd/niceapp/util/LocalCacheUtils$1;

    invoke-direct {v5}, Lcom/brixd/niceapp/util/LocalCacheUtils$1;-><init>()V

    invoke-virtual {v5}, Lcom/brixd/niceapp/util/LocalCacheUtils$1;->getType()Ljava/lang/reflect/Type;

    move-result-object v5

    invoke-virtual {v2, v3, v5}, Lcom/google/gson/Gson;->fromJson(Ljava/lang/String;Ljava/lang/reflect/Type;)Ljava/lang/Object;

    move-result-object v5

    move-object v0, v5

    check-cast v0, Ljava/util/ArrayList;

    move-object v4, v0
    :try_end_54
    .catch Ljava/lang/Exception; {:try_start_3e .. :try_end_54} :catch_5c

    .line 134
    .end local v2    # "gson":Lcom/google/gson/Gson;
    :cond_54
    :goto_54
    if-nez v4, :cond_5b

    .line 135
    new-instance v4, Ljava/util/ArrayList;

    .end local v4    # "messages":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/userinfo/model/MessageModel;>;"
    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    .line 138
    .restart local v4    # "messages":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/userinfo/model/MessageModel;>;"
    :cond_5b
    return-object v4

    .line 129
    :catch_5c
    move-exception v1

    .line 130
    .local v1, "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_54
.end method

.method public static getPendingPublishData()Ljava/lang/String;
    .registers 3

    .prologue
    .line 55
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "CommunityPendingPublishData"

    const-string v2, ""

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static getPortalData()Lorg/json/JSONObject;
    .registers 6

    .prologue
    const/4 v2, 0x0

    .line 241
    sget-object v3, Lcom/brixd/niceapp/util/LocalCacheUtils;->mContext:Landroid/content/Context;

    invoke-static {v3}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v3

    const-string v4, "PortalData"

    const-string v5, ""

    invoke-virtual {v3, v4, v5}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 243
    .local v0, "cachedData":Ljava/lang/String;
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_16

    .line 249
    :goto_15
    return-object v2

    .line 247
    :cond_16
    :try_start_16
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
    :try_end_1b
    .catch Lorg/json/JSONException; {:try_start_16 .. :try_end_1b} :catch_1d

    move-object v2, v3

    goto :goto_15

    .line 248
    :catch_1d
    move-exception v1

    .line 249
    .local v1, "e":Lorg/json/JSONException;
    goto :goto_15
.end method

.method public static getPortalDataLastReqTime()J
    .registers 4

    .prologue
    .line 91
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "PortalDataReqTime"

    const-wide/16 v2, 0x0

    invoke-virtual {v0, v1, v2, v3}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;J)J

    move-result-wide v0

    return-wide v0
.end method

.method public static isAlertCommunityArticle(Landroid/content/Context;I)Z
    .registers 5
    .param p0, "context"    # Landroid/content/Context;
    .param p1, "id"    # I

    .prologue
    .line 185
    invoke-static {}, Lcom/brixd/niceapp/util/LocalCacheUtils;->getAlertCommunityArticleIds()Lorg/json/JSONObject;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {p0}, Lcom/zuiapps/suite/utils/device/DeviceUtil;->getDeviceId(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "_"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public static isCommunityViewed()Z
    .registers 3

    .prologue
    .line 47
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "CommunityViewedFlag"

    const/4 v2, 0x0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/Boolean;)Z

    move-result v0

    return v0
.end method

.method public static isGuideCommentViewed()Z
    .registers 3

    .prologue
    .line 229
    sget-object v0, Lcom/brixd/niceapp/util/LocalCacheUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "GuideCommentSetting"

    const/4 v2, 0x0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/Boolean;)Z

    move-result v0

    return v0
.end method

.method public static isGuideMeiyixiaViewed()Z
    .registers 3

    .prologue
    .line 221
    sget-object v0, Lcom/brixd/niceapp/util/LocalCacheUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "GuideMeiyixiaSetting"

    const/4 v2, 0x0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/Boolean;)Z

    move-result v0

    return v0
.end method

.method public static isGuidePageViewed()Z
    .registers 3

    .prologue
    .line 205
    sget-object v0, Lcom/brixd/niceapp/util/LocalCacheUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "GuidePageSetting"

    const/4 v2, 0x0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/Boolean;)Z

    move-result v0

    return v0
.end method

.method public static isGuideSideMenuViewed()Z
    .registers 3

    .prologue
    .line 213
    sget-object v0, Lcom/brixd/niceapp/util/LocalCacheUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "GuideSideMenuCommunitySetting"

    const/4 v2, 0x0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/Boolean;)Z

    move-result v0

    return v0
.end method

.method public static isShowCommunitySidebarNotify()Z
    .registers 3

    .prologue
    .line 71
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "CommunitySidebarNotify"

    const/4 v2, 0x0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/Boolean;)Z

    move-result v0

    return v0
.end method

.method public static isShowMenuNotify()Z
    .registers 3

    .prologue
    .line 63
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "MenuNotifySetting"

    const/4 v2, 0x0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/Boolean;)Z

    move-result v0

    return v0
.end method

.method public static savePendingPublishData(Ljava/lang/String;)V
    .registers 3
    .param p0, "data"    # Ljava/lang/String;

    .prologue
    .line 51
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "CommunityPendingPublishData"

    invoke-virtual {v0, v1, p0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Ljava/lang/String;)V

    .line 52
    return-void
.end method

.method public static setAuthCode(Ljava/lang/String;)V
    .registers 3
    .param p0, "authCode"    # Ljava/lang/String;

    .prologue
    .line 75
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "CommunityAuthCode"

    invoke-virtual {v0, v1, p0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Ljava/lang/String;)V

    .line 76
    return-void
.end method

.method public static setAuthStatus(I)V
    .registers 3
    .param p0, "status"    # I

    .prologue
    .line 83
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "CommunityAuthStatus"

    invoke-virtual {v0, v1, p0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;I)V

    .line 84
    return-void
.end method

.method public static setCommunityViewed()V
    .registers 3

    .prologue
    .line 43
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "CommunityViewedFlag"

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Z)V

    .line 44
    return-void
.end method

.method public static setGuideCommentViewed()V
    .registers 3

    .prologue
    .line 233
    sget-object v0, Lcom/brixd/niceapp/util/LocalCacheUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "GuideCommentSetting"

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Z)V

    .line 234
    return-void
.end method

.method public static setGuideMeiyixiaViewed()V
    .registers 3

    .prologue
    .line 225
    sget-object v0, Lcom/brixd/niceapp/util/LocalCacheUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "GuideMeiyixiaSetting"

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Z)V

    .line 226
    return-void
.end method

.method public static setGuidePageViewed()V
    .registers 3

    .prologue
    .line 209
    sget-object v0, Lcom/brixd/niceapp/util/LocalCacheUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "GuidePageSetting"

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Z)V

    .line 210
    return-void
.end method

.method public static setGuideSideMenuViewed()V
    .registers 3

    .prologue
    .line 217
    sget-object v0, Lcom/brixd/niceapp/util/LocalCacheUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "GuideSideMenuCommunitySetting"

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Z)V

    .line 218
    return-void
.end method

.method public static setLocalTagModels(Ljava/lang/String;)V
    .registers 3
    .param p0, "tagsJsonStr"    # Ljava/lang/String;

    .prologue
    .line 148
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "LocalTags"

    invoke-virtual {v0, v1, p0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Ljava/lang/String;)V

    .line 149
    return-void
.end method

.method public static setMessageLastCheckTime(IJ)V
    .registers 6
    .param p0, "uid"    # I
    .param p1, "lastCheckTime"    # J

    .prologue
    .line 99
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "MessageLastCheckTime_"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1, p1, p2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;J)V

    .line 100
    return-void
.end method

.method public static setMessages(ILorg/json/JSONArray;)V
    .registers 6
    .param p0, "uid"    # I
    .param p1, "array"    # Lorg/json/JSONArray;

    .prologue
    .line 115
    invoke-static {p1}, Lcom/brixd/niceapp/userinfo/model/MessageModel;->parse(Lorg/json/JSONArray;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-static {p0}, Lcom/brixd/niceapp/util/LocalCacheUtils;->getMessages(I)Ljava/util/ArrayList;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/brixd/niceapp/userinfo/model/MessageModel;->mergeModels(Ljava/util/ArrayList;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    move-result-object v0

    .line 116
    .local v0, "messages":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/userinfo/model/MessageModel;>;"
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "CachedMessages_"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lcom/google/gson/Gson;

    invoke-direct {v3}, Lcom/google/gson/Gson;-><init>()V

    invoke-virtual {v3, v0}, Lcom/google/gson/Gson;->toJson(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Ljava/lang/String;)V

    .line 118
    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v1

    invoke-static {p0, v1}, Lcom/brixd/niceapp/util/LocalCacheUtils;->setMessagesCount(II)V

    .line 119
    return-void
.end method

.method public static setMessagesCount(II)V
    .registers 5
    .param p0, "uid"    # I
    .param p1, "count"    # I

    .prologue
    .line 107
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "MessagesCount_"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1, p1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;I)V

    .line 108
    return-void
.end method

.method public static setPortalData(Lorg/json/JSONObject;)V
    .registers 4
    .param p0, "jsonObject"    # Lorg/json/JSONObject;

    .prologue
    .line 237
    sget-object v0, Lcom/brixd/niceapp/util/LocalCacheUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "PortalData"

    invoke-virtual {p0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Ljava/lang/String;)V

    .line 238
    return-void
.end method

.method public static setPortalDataLastReqTime(J)V
    .registers 4
    .param p0, "time"    # J

    .prologue
    .line 95
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "PortalDataReqTime"

    invoke-virtual {v0, v1, p0, p1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;J)V

    .line 96
    return-void
.end method

.method public static setShowCommunitySideBarNotify(Z)V
    .registers 3
    .param p0, "show"    # Z

    .prologue
    .line 67
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "CommunitySidebarNotify"

    invoke-virtual {v0, v1, p0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Z)V

    .line 68
    return-void
.end method

.method public static setShowMenuNotify(Z)V
    .registers 3
    .param p0, "show"    # Z

    .prologue
    .line 59
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "MenuNotifySetting"

    invoke-virtual {v0, v1, p0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Z)V

    .line 60
    return-void
.end method
